package 第二章;
import java.util.Scanner;
public class 幸运会员 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("输入会员号");
        int a=input.nextInt();
        int c=(int)(Math.random()*10);
        System.out.println("会员号码为："+c);
        int b=(a/100)%10;
        System.out.println(b);
        if (b==c) {
            System.out.println(a+"的会员号："+c);
        } else {
            System.out.println(a+"不是会员");
        }
    }
}
